package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
@ToString
public class SystemDictionaryitem {
    private Long id;

    private SystemDictionary systemDictionary;

    private String title;

    private Integer sequence;

    public  String getJsonData(){
        Map<String,Object> map= new HashMap<>();
        map.put("id",this.id);
        map.put("systemDictionaryTitle",this.systemDictionary.getTitle());
        map.put("systemDictionaryId",this.systemDictionary.getId());
        map.put("title",this.title);
        map.put("sequence",this.sequence);
        return JSON.toJSON(map).toString();
    }

}